
<table border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td width="50%">
      <?if (!$addrecord) {?>
      <form name="form1" method="post">
        <table border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td>
              <input type="text" class="text" name="Code" size="20" value="Enter Code ..." onFocus="Code.value=''">
              <input type="hidden" name="label" value="<?=$label?>">
              <input type="hidden" name="parent_id" value="<?=$id?>">
              <input type="hidden" name="aid" value="<?=$id?>">
            </td>
            <td>
              <input name="image" type="image"  onCLick="return submitForm('form1','add.php',1)" src="<?print($rela_path)?>images/bt_add.gif">
            </td>
            <td><img src="<?print($rela_path)?>images/shim.gif" width=30></td>
          </tr>
        </table>
      </form>
      <?}?>
    </td>
    <td align="right">
      <form name="form2" method="get">
        <table border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td>
              <input type="text" class="text" name="Search" size="20" value="Enter Code or Name ..." onFocus="Search.value=''">
              <input type="hidden" name="action" value="search">
            </td>
            <td>
              <input name="image" type="image" src="<?print($rela_path)?>images/bt_search.gif">
            </td>
            <td>
              <input name="image" type="image" src="<?print($rela_path)?>images/bt_listall.gif" onClick="Redirect('<?echo $PHP_SELF?>',1);return false;">
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr>
    <td><form name="form2" method="get">
        <table border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td>
						
              <select name="type" class="select" onChange="this.form.submit()">
						<option value="0" <?php if ($type=="0") echo "selected"?>>Please select ...</option>
				
			<option value="1" <?php if ($type=="1") echo "selected"?>>Evening Seminars</option>
			<option value="2" <?php if ($type=="2") echo "selected"?>>Training Courses</option>
			<option value="3" <?php if ($type=="3") echo "selected"?>>Training Programs</option>
			<option value="4" <?php if ($type=="4") echo "selected"?>>In-house Training</option>
			</select>
              <input type="hidden" name="action" value="filter">
            </td>
            <td>
            </td>
            <td>
              
            </td>
          </tr>
        </table>
      </form></td>
    <td align="right">&nbsp;</td>
  </tr>
</table>
